package com.tcode.utils;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

public class ToolsConfig {
	
	private static InputStream ins ;
	private static int onlineCount;
	private static String warnTxtPath;
	
	
	public static int getOnlineCount() {
		return onlineCount;
	}

	public static void addOnlineCount(){
		onlineCount++;
	}
	
	public static void cutOnlineCount(){
		onlineCount--;
	}

	public static InputStream getIns() {
		return ins;
	}

	public static void setIns(InputStream ins) {
		ToolsConfig.ins = ins;
	}

	public static String getWarnTxtPath() {
		return warnTxtPath;
	}

	public static void setWarnTxtPath(String warnTxtPath) {
		ToolsConfig.warnTxtPath = warnTxtPath;
	}
	
	public static Map<String, String> mapPage = new HashMap<String, String>();
	
	static{
		mapPage.put("downLoad", "downloadList.jsp");
	}

}
